<#macro tree list assignList>
    <#if list?size gt 0>
    <ol class="dd-list">
    </#if>
    <#list list as menu>
        <#if assignList?seq_contains(menu.menuId!'')>
            <li class="dd-item dd3-item dd-field dd-active">
                <input type="hidden" value="${menu.menuId!''}" name="id"/>

                <div class="dd3-content">${menu.menuName!''}
                </div>
                <#if menu.childrenMenuList??>
                    <@tree list=menu.childrenMenuList assignList=assignList />
                </#if>
            </li>
        <#else>
            <li class="dd-item dd3-item dd-field">
                <input type="hidden" value="${menu.menuId!''}" name="id"/>

                <div class="dd3-content">${menu.menuName!''}
                </div>
                <#if menu.childrenMenuList??>
                    <@tree list=menu.childrenMenuList assignList=assignList />
                </#if>
            </li>
        </#if>
    </#list>
    <#if list?size gt 0>
    </ol>
    </#if>
</#macro>
